<template>
  <div class="myBalance">
    <div class="content">
      <!-- 顶部 navbar -->
      <van-nav-bar
        title="我的余额"
        class="page-container"
      >
        <van-icon class="left" slot="left" name="arrow-left" @click="$router.back()"> 
        </van-icon>
      </van-nav-bar>

      <!-- 显示余额区域 -->
      <div class="main">
        <van-row type="flex" justify="space-between">
          <van-col class="current">当前余额</van-col>
          <van-row>
            <van-col>
              <img class="instructions" :src="imgUrl" alt="">
            </van-col>
            <van-col class="text" @click="go">余额说明</van-col>
          </van-row>
        </van-row>

        <span class="meony">0.00</span>  元

        <van-button class="withdrawal" block type="default" native-type="button">提现</van-button>
      </div>

      <!-- 交易明细 -->
      <div>
        <span class="deal">交易明细</span>
        <div class="div-deal">
          <img class="img-deal" :src="imgURL" alt="">
          <span class="txt">暂无明细记录</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import instructions from '@/assets/images/instructions.png'
import noDetail from '@/assets/images/no-detail.png'
export default {
  data () {
    return {
      imgUrl: instructions,
      imgURL: noDetail,
      show: false
    }
  },
  methods: {
    go() {
      this.$router.push('/myBalance/detail')
    }
  }
}
</script>

<style lang="less" scoped>
.myBalance {
  .content {
    height: 214px;
    background-color: #3190e8;
    .van-hairline--bottom::after {
      border-bottom-width: 0px;
    }
    .left {
    color: #fff;
    font-size: 18px;
    }
    .main {
      width: 360px;
      height: 157px;
      background-color: #fff;
      box-sizing: border-box;
      margin: 8px;
      padding: 10px;
      .current {
        font-size: 14px;
        color: #666;
      }
      .instructions {
        width: 14px;
        height: 14px;
        vertical-align: middle;
        margin-right: 5px;
      }
      .text {
        font-size: 14px;
        color: #3190e8;
      }
    }
    .meony {
      display: inline-block;
      margin-top: 5px;
      font-size: 40px;
    }
    .withdrawal {
      margin-top: 25px;
      background-color: #ccc;
      font-size: 18px;
      color: #fff;
    }
    .deal {
      display: block;
      margin: 25px 0 0 15px;
      font-size: 14px;
      color: #999;
    }
    .div-deal {
      width: 100%;
      .img-deal {
        display: block;
        width: 187px;
        height: 117px;
        margin: 20px 0 0 100px;
      }
      .txt {
        display: inline-block;
        color: #666;
        margin: 20px 0 0 150px;
      }
    }
    
  }
}
</style>